package com.rightsidetech.http.controller.agentApp.adverts;

import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.response.adverts.AppAdvertsResp;
import com.rightsidetech.system.service.SysAdvertsLoadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shenyu.client.springmvc.annotation.ShenyuSpringMvcClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/agentApp/adverts")
@ShenyuSpringMvcClient(path = "/agentApp/adverts/**")
@Api(tags = "代理商载入广告相关")
public class AgentAppAdvertsController {

    @Resource
    private SysAdvertsLoadService sysAdvertsLoadService;

    @GetMapping("/get")
    @ApiOperation("代理商app获取载入广告")
    public ResponseData<AppAdvertsResp> getAdverts(){
        return sysAdvertsLoadService.getAdverts((byte) 1);
    }
}
